#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
#include<vector>
using namespace std;
template <class T, class Container = vector<T>,
	class Compare = less<typename Container::value_type> >
int main()
{
	std::priority_queue<int> q;
	q.push(8);
	q.push(3);
	q.push(5);
	q.push(2);
	q.push(0);
	q.push(4);
	while (!q.empty())
	{
		cout << q.top() << ' ';
		q.pop();
	}
	cout << endl;
	return 0;
}